<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<title>普田学院学籍管理系统</title>
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/reset.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/main.css" />
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]-->
<link rel="stylesheet" media="screen,projection" type="text/css"	href="css/style.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"	href="css/mystyle.css" />
<link href="css/grid/grid.css" type="text/css" rel="stylesheet"	media="screen" />
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/aa.js"></script>
<script type="text/javascript" src="js/cal.js"></script>
<script language="javascript" src="js/lodop.js"></script>
<object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop.exe"></embed>
</object> 
<style>
a{text-decoration: none;}
</style>

</head>
<body>
	<html:form action="writeReceipt" method="post">
		<html:hidden property="tableID" styleId="tableID" value="" />
		<html:hidden property="callMethod" styleId="callMethod" />



		<%@include file="/front/head.jsp"%>


			<div id="content" class="row">
			<br />
				<div class="column grid_16">
					<table width="100%" border="0" cellspacing="0" cellpadding="0"	style="">
<tr>
	<td>姓名：<html:text property="userVO.user_name_search" maxlength="10"
			styleId="userVO.user_name_search" styleClass="text-input" />&nbsp;&nbsp;&nbsp;<html:submit
			property="cz" styleClass="input-submit">查找</html:submit>
	</td>
</tr>


<tr>
	<td>请选择起止日期：
	<nested:empty property="userVO.start">
	<html:text property="userVO.start" readonly="true"	value="点击选择日期" styleClass="input-text readonly "  style="width:20%" styleId="userVO.start" />
	</nested:empty>
	
	<nested:notEmpty property="userVO.start">
	
	<html:text property="userVO.start" readonly="true"	styleClass="input-text readonly "  style="width:20%" styleId="userVO.start" />
	
	</nested:notEmpty>
	
	
	
	至
	<nested:empty property="userVO.end">
	<html:text property="userVO.end" readonly="true" value="点击选择日期" styleClass="input-text readonly "  style="width:20%"	styleId="userVO.end" />
	</nested:empty>
	
	<nested:notEmpty property="userVO.end">
	
	<html:text property="userVO.end" readonly="true"  styleClass="input-text readonly "  style="width:20%"	styleId="userVO.end" />
	
	</nested:notEmpty>
	
	
	</td>
</tr>

					</table>

					<br />
				</div>
				</div>

			<aa:zone name="dataZone">
				<%@include file="receipt_head.jsp"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
	<tr>
	<th width="8%">姓名</th>
	<th width="5%">性别</th>
	<th width="5%">农(居)民</th>
	<th width="10%">籍贯</th>
	<th width="5%">民族</th>
	<th width="12%">出生年月</th>
	<th width="12%">入学时间</th>
	<th width="15%">专业</th>
	<th width="8%">班级</th>
	<th>操作</th>


</tr>
	<nested:iterate id="user" name="dateReturnList" indexId="dindex">
	<tr>
		<td><nested:write name="user" property="userName" />
		</td>
		<td><nested:write name="user" property="sex" />
		</td>
		<td><nested:write name="user" property="nm" />
		</td>
		<td><nested:write name="user" property="jg" />
		</td>
		<td><nested:write name="user" property="mz" />
		</td>
		<td><nested:write name="user" property="birthday" />
		</td>
		<td><nested:write name="user" property="rxsj" />
		</td>
		<td><nested:write name="user" property="zy" />
		</td>
		<td><nested:write name="user" property="bj" />
		</td>
		<td>
		<input type="button" id="update" style="width: 60px;"
				value="查看资料"
				onclick="getUserInfo('<nested:write name="user" property="id"/>')" />
				
		<input type="button" id="update" style="width: 60px;"
				value="编辑资料"
				onclick="toEditUser('<nested:write name="user" property="id"/>')"/>
				
		<input type="button" id="update" style="width: 60px;"
				value="删除资料"
				onclick="deleteUser('<nested:write name="user" property="userName"/>','<nested:write name="user" property="id"/>')"	/>	
		</td>

		
	</tr>
</nested:iterate>

</table>

		



</div>



<br />
					</div>
					</div>

				<%@include file="/front/nav.jsp"%>
				</aa:zone>
	</html:form>

	<script type="text/javascript">
		function deleteUser(name, id) {
			if (confirm("确定要删除" + name + "的档案吗？,删除后不可恢复，请再次确认！")) {
				$('#tableID').val(id);
				ajaxAnywhere.submitAJAX("deleteUser", "dataZone");
				$("form").submit();
			}
		}

		function toEditUser(id) {
			$('#callMethod').val('toEditUserInfo');
			$('#tableID').val(id);
			$("form").submit();
		}
		function getUserInfo(id) {
			$('#callMethod').val('getUserInfo');
			$('#tableID').val(id);
			$("form").submit();
		}

		function getUserInfobyNotPay(id) {
			$('#callMethod').val('getUserInfo');
			$('#toNotPay').val('1');

			$('#tableID').val(id);
			$("form").submit();
		}
		
		$(document).ready(function(){
			$('#userVO\\.start').simpleDatepicker({startdate:1950 , enddate:2020 , x:175 , y:0 });
			$('#userVO\\.end').simpleDatepicker({startdate:2008 , enddate:2015 , x:175 , y:0 });
		}); 
		
		
		function print(){
			var LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  
			LODOP.SET_PREVIEW_WINDOW(1,1,0,800,600,"打印");//打印前弹出选择打印机的对话框
			LODOP.SET_PRINT_PAGESIZE(0,"297mm","210mm","A4");
			LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW",1);//打印后自动关闭预览窗口
			LODOP.SET_SHOW_MODE("HIDE_PAPER_BOARD",1);
			var strFormHtml="<body>"+document.getElementById("printData").innerHTML+"</body>";
			LODOP.ADD_PRINT_HTM(0,30,750,800,strFormHtml);
			LODOP.PREVIEW();
		};	
		
		
		
		function printAll(){
			var LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  
			LODOP.SET_PREVIEW_WINDOW(1,1,0,800,600,"打印");//打印前弹出选择打印机的对话框
			LODOP.SET_PRINT_PAGESIZE(0,"297mm","210mm","A4");
			LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW",1);//打印后自动关闭预览窗口
			LODOP.SET_SHOW_MODE("HIDE_PAPER_BOARD",1);
			LODOP.ADD_PRINT_HTM(10,450,300,200,"<b style='font-size:18px;'>20<a style='color:white;'>学生</a>年学生助学金</b>");
			var strStyleCSS="<link href='css/td.css' type='text/css' rel='stylesheet'>";
			LODOP.ADD_PRINT_HTM(60,0,750,600,strStyleCSS+"<table border=0 cellpadding=0 cellspacing=0  style='width:1060px'><tr><th style='height:35px;' width='4%'>序号</th><th width='5%' >姓名</th><th width='4%'>性别</th>							<th width='18%'>专业</th>							<th width='28%'>户口所在地</th>							<th width='15%'>身份证号</th>							<th width='15%'>银行卡号</th>							<th width='5%'>金额</th>							<th >签字</th>													</tr>							<nested:iterate id='user' name='dateReturnList' indexId='dindex'>							<tr>							<td  style='margin-left:5px; ' style='height:35px;'>&nbsp;	</td>								<td  style='margin-left:5px; '><nested:write name='user' property='userName' />	</td>								<td  style='margin-left:5px; '><nested:write name='user' property='sex' /></td>								<td  style='margin-left:5px; '><nested:write name='user' property='zy' />	</td>								<td  style='margin-left:5px; '><nested:write name='user' property='hj_sheng'/> <nested:write name='user' property='hj_xian'/>县（市）<nested:write name='user' property='hj_xiang'/>乡（镇） <nested:write name='user' property='hj_cun'/>村<nested:write name='user' property='hj_zu'/>组 								</td>								<td  style='margin-left:5px; '><nested:write name='user' property='sfz' />								</td>								<td  style='margin-left:5px; '>								</td>								<td  style='margin-left:5px; '>								</td>								<td  style='margin-left:5px; '>								</td>							</tr>						</nested:iterate>						</table>");
			LODOP.PREVIEW();
		};	
		
	</script>


</body>
</html>